/** 每项formItem配置属性 */
interface FormItemIF {
  label: string
  prop: string
}

interface FormModelIF {
  username: string
  email: string
  nickname: string
  dept_id: number | undefined
  created_time: string
}

const config = {
  formItemList: [
    { type: 'input', label: '账号', prop: 'username' },
    { type: 'input', label: '邮箱', prop: 'email' },
    { type: 'input', label: '昵称', prop: 'nickname' },
    {
      type: 'select',
      label: '部门',
      prop: 'dept_id',
      initialValue: '1',
      options: [
        { value: '1', label: '产品部' },
        { value: '2', label: '研发部' },
      ],
    },
    { type: 'input', label: '创建时间', prop: 'created_time' },
  ],
}

export default config
